package org.clever.eureka.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者： lzw<br/>
 * 创建时间：2018-06-23 11:47 <br/>
 */
@RestController
public class EchoController {

    @RequestMapping("/echo")
    public String echo(@RequestParam(name = "check", required = false) String check, @RequestParam(name = "str", required = false) String str) {
        if (check != null) {
            return check;
        }
        if (str != null) {
            return str;
        }
        return "echo";
    }
}
